package com.qc31.comlib

import com.qc31.comlib.map.AppGpsColumn
import com.qc31.comlib.map.MapMarker

object UserConstant {
    //当前IP
    var current_ip = ""

    //当前端口
    var current_port = ""

    //用户ID，账户
    var current_userId = ""

    //当前加密后的密码
    var current_pwd = ""

    //当前加密后的密码
    var current_pwd_md5 = ""

    //车辆ID
    var current_carId: String? = ""

    //视频通道
    var current_videos: String? = ""

    //公司ID
    var current_cmpId = ""

    //用户下车辆总数
    var current_car_num = 0

    //会话ID
    var sessionId = ""

    //是否有实时视频权限
    var isRealVideo = false

    //是否有历史视频权限
    var isTapeVideo = false

    //视频服务器地址
    var video_host = ""



    //登录类型
    var loginType: String = "user"

    //广告链接
    var adLink_1 = ""
    var adLink_2 = ""
    var adLink_3 = ""
    override fun toString(): String {
        return "super.toString()= isRealVideo= $isRealVideo,isTapeVideo=$isTapeVideo "
    }
}

object AppConfigs {
    //是否需要验证码登录
    var isLoginSms = false

    //是否需要车牌颜色登录
    var isPlateColorVfy = false

    //是否需要Base64密码
    var isBase64Pwd = false

    //是否可以修改密码
    var isUpPwd = false

    //是否过率报警数为0的报警
    var isAlarmFilter = false

    //是否开启报警推送
    var isAlarms = false

    //是否开启欠费通知
    var isArrears = true

    //首页设置
    var homeSet = "homeSet"

    //地图图标参数设置
    var mapMark: MapMarker? = null

    //快捷设置
    var quickSet: MutableList<String>? = null

    //信息窗设置
    var appGpsColumn: MutableList<AppGpsColumn>? = null
}

object Constants {
    const val HTTP = "http://"
    const val HTTPS = "https://"

    //使用协议
    var agreeUrl = "https://help.31help.com:8888/helpSystem/appAgreement/agreement.html"

    //隐私政策
    var privacyUrl = "https://help.31help.com:8888/helpSystem/appAgreement/privacyPolicy.html"

    //企业版更新接口
    var newVersionUrl = "http://101.133.218.23:9999/api/app/version/getLatest"

    //个人信息共享清单
    const val infoShareUrl: String =
        "https://help.31help.com:8888/helpSystem/appAgreement/shared.html"

    //个人信息收集清单
    const val infoCollectUrl: String =
        "https://help.31help.com:8888/helpSystem/appAgreement/collect.html"

    //    const val privacyUrlLocal = "file:///android_asset/privacyPolicy.html"
    //独立安装视频地址
    const val videoInstall = "http://101.133.218.23:9999/video/phone1.mp4"

    //好友安装视频地址
    const val video2Install = "http://101.133.218.23:9999/video/phone2.mp4"

    //自动判断平台连接
    const val marketUrl = "http://bc.31gps.net/wxShare/skip_market_qr.html"
}

object MenuKey {
    const val MENU_HOME = "homeSet"

    const val MENU_109 = "109"
    const val MENU_101 = "101"
    const val MENU_104 = "104"
    const val MENU_106 = "106"
    const val MENU_107 = "107"
    const val MENU_105 = "105"
    const val MENU_108 = "108"
    const val MENU_905 = "905"
    const val MENU_103 = "103"
    const val MENU_fj1 = "fj1"

    const val MENU_fj2 = "fj2"
    const val MENU_fj3 = "fj3"
    const val MENU_fj4 = "fj4"
    const val MENU_102 = "102"
    const val MENU_201 = "201"
    const val MENU_202 = "202"
    const val MENU_203 = "203"
    const val MENU_205 = "205"
    const val MENU_224 = "224"
    const val MENU_208 = "208"

    const val MENU_207 = "207"
    const val MENU_209 = "209"
    const val MENU_210 = "210"
    const val MENU_211 = "211"
    const val MENU_214 = "214"
    const val MENU_204 = "204"
    const val MENU_212 = "212"
    const val MENU_225 = "225"
    const val MENU_909 = "909"
    const val MENU_902 = "902"

    const val MENU_206 = "206"
    const val MENU_217 = "217"
    const val MENU_218 = "218"
    const val MENU_215 = "215"
    const val MENU_216 = "216"
    const val MENU_223 = "223"
    const val MENU_219 = "219"
    const val MENU_222 = "222"
    const val MENU_220 = "220"
    const val MENU_221 = "221"

    const val MENU_213 = "213"
    const val MENU_907 = "907"
    const val MENU_906 = "906"
    const val MENU_908 = "908"
    const val MENU_903 = "903"
    const val MENU_901 = "901"
    const val MENU_can = "can"
    const val MENU_area = "area"
    const val MENU_910 = "910"
    const val MENU_911 = "911"

    const val MENU_110 = "110"
    const val MENU_912 = "912"
    const val MENU_111 = "111"
    const val MENU_913 = "913"
    const val MENU_914 = "914"
    const val MENU_915 = "915"


    const val username = "{username}"
    const val password = "{password}"
    const val passwordMd5 = "{password_md5}"
    const val sessionId = "{sessionId}"

    const val MENU_KEY = "menuKey"
}